package com.hzit.rabbitmq.consumer.listener;

import com.ruoyi.common.log.annotation.Log;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RabbitListener(queues = "hzit-direct")
@Component
public class MyConsumerListener01 {

	@RabbitHandler
	public void getMessage(String message){
		System.out.println("获取到生产者发来的消息：" + message);
	}
}
